﻿namespace InputBoxes.Controls
{
    public class ParsingInputBoxBase : SingleLineTextBasedInputBoxBase
    {
        protected override bool GetIsValid(string text)
        {
            return base.GetIsValid(text) && IsParsable(text);
        }

        protected virtual bool IsParsable(string text)
        {
            return true;
        }
    }
}